package com.bei_en.teacher.admin.model.consultation.vo;

import java.util.*;
import com.bei_en.teacher.admin.model.consultation.bean.ConsultationPraise;
import com.bei_en.teacher.admin.model.BaseVo;
import javax.validation.constraints.*;
import org.hibernate.validator.constraints.*;
import java.math.BigDecimal;

/**
 * 用于前端页面数据传递
 * 
 * @author Guocg
 * @date 2016-8-3 23:46:19
 */
public class ConsultationPraiseVo extends BaseVo {

	private ConsultationPraise consultationPraise;

	public ConsultationPraiseVo() {

		this.consultationPraise = new ConsultationPraise();
	}

	public ConsultationPraiseVo(ConsultationPraise consultationPraise) {

		this.consultationPraise = consultationPraise;
	}

	public ConsultationPraise getConsultationPraise() {

		return this.consultationPraise;
	}

	public void setConsultationPraise(ConsultationPraise consultationPraise) {

		this.consultationPraise = consultationPraise;
	}

	public Integer getId() {
		return this.consultationPraise.getId();
	}

	public void setId(Integer id) {
		this.consultationPraise.setId(id);
	}

	public void setUserId(Integer value) {
		this.consultationPraise.setUserId(value);
	}

	public Integer getUserId() {
		return this.consultationPraise.getUserId();
	}

	public void setPraisePeople(Integer value) {
		this.consultationPraise.setPraisePeople(value);
	}

	public Integer getPraisePeople() {
		return this.consultationPraise.getPraisePeople();
	}

	public void setConsultatinId(Integer value) {
		this.consultationPraise.setConsultatinId(value);
	}

	public Integer getConsultatinId() {
		return this.consultationPraise.getConsultatinId();
	}

	public void setCreateTime(Date value) {
		this.consultationPraise.setCreateTime(value != null ? (int) (value
				.getTime() / 1000) : 0);
	}

	public Date getCreateTime() {
		Integer time = this.consultationPraise.getCreateTime();
		if (time != null && time != 0)
			return new Date(Long.valueOf(time) * 1000);
		else
			return null;
	}

}